﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SBossThreatList extends IMessageBase
    {
        public var threatList:Array;
        public var topThreats:Array;
        public var lowestThreats:Array;
        public const _type:int = 53;
        public static var _regist:SBossThreatList = new SBossThreatList(true);

        public function SBossThreatList(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SBossThreatList();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            SeqSThreatHelper.write(param1, this.threatList);
            SeqSThreatHelper.write(param1, this.topThreats);
            SeqSThreatHelper.write(param1, this.lowestThreats);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.threatList = SeqSThreatHelper.read(param1);
            this.topThreats = SeqSThreatHelper.read(param1);
            this.lowestThreats = SeqSThreatHelper.read(param1);
            return;
        }// end function

    }
}
